Skip to content

CombinedReactiveCommand class

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.CombinedReactiveCommand<T1, T2> Modifiers: public

Summary

View source

        Encapsulates a composite user interaction.
        

Applies to

net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-macos15.0, net9.0-ios18.0, net9.0-android35.0, net8.0, net8.0-macos14.5, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-ios17.5, net8.0-tvos18.0, net8.0-macos15.0, net8.0-ios18.0, net8.0-windows10.0.19041, net8.0-maccatalyst18.0, net8.0-tvos17.2, netstandard2.1, net481, net462

Class hierarchy
classDiagram
class CombinedReactiveCommand~T1,T2~
class ReactiveCommandBase~TParam, IList~TResult~~
ReactiveCommandBase~TParam, IList~TResult~~ <|-- CombinedReactiveCommand~T1,T2~

Inherits from: ReactiveCommandBase>

Remarks

This class provides the bulk of the actual implementation for combined reactive commands. You should not create instances of this class directly, but rather via the static creation methods on the non-generic ReactiveCommand class.

A CombinedReactiveCommand combines multiple reactive commands into a single command. Executing the combined command executes all child commands. Since all child commands will receive the same execution parameter, all child commands must accept a parameter of the same type.

In order for the combined command to be executable, all child commands must themselves be executable. In addition, any canExecute observable passed in during construction must also yield true.

Constructors

NameSummary
.ctorInitializes a new instance of the [CombinedReactiveCommand](# class.

Properties

NameSummary
CanExecuteGets an observable whose value indicates whether the command can currently execute.
IsExecutingGets an observable whose value indicates whether the command is currently executing.
ThrownExceptionsGets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.

Methods

NameSummary
SubscribeSubscribes to execution results from this command.
ExecuteGets an observable that, when subscribed, executes this command.
DisposeDisposes of the managed resources.
Inherited members